package com.luo.chengrui.module.sa.convert.commontree;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.sa.controller.admin.commontree.vo.*;
import com.luo.chengrui.module.sa.dal.dataobject.commontree.CommonTreeBizDO;

/**
 * 业务树 业务端通用树结构，必须与SA_COMMON_TREE表数据合并使用 Convert
 *
 * @author 诚睿
 */
@Mapper
public interface CommonTreeBizConvert {

    CommonTreeBizConvert INSTANCE = Mappers.getMapper(CommonTreeBizConvert.class);

    CommonTreeBizDO convert(CommonTreeBizCreateReqVO bean);

    CommonTreeBizDO convert(CommonTreeBizUpdateReqVO bean);

    CommonTreeBizRespVO convert(CommonTreeBizDO bean);

    List<CommonTreeBizRespVO> convertList(List<CommonTreeBizDO> list);

    PageResult<CommonTreeBizRespVO> convertPage(PageResult<CommonTreeBizDO> page);

    List<CommonTreeBizExcelVO> convertList02(List<CommonTreeBizDO> list);

}
